/*
 * Main.java
 *
 * Created on April 20, 2007, 1:44 PM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package vendingMachine.localLogger;


import salesDB.SalesRecord;

import java.util.Date;

/**
 *
 * @author Anne Harmeson
 */
public class Main
{
    
    public static void main (String[] args)
    {
        LocalLogger ll = new LocalLogger ();
        
        //create a sale record
        SalesRecord testRecord1 = new SalesRecord ();
        testRecord1.transactionID = 1234;
        testRecord1.transactionTotal = 1.99;

        testRecord1.date = new Date ();
        
        //create a sale record
        SalesRecord testRecord2 = new SalesRecord ();
        testRecord2.transactionID = 1234;
        testRecord1.transactionTotal = 18.09;
        testRecord2.date = new Date ();
        
        ///ll.testConnection (new String("Client/Server Connection Test."));
        
        //send sale records to Local Site
        ll.processSale (testRecord1);
        ll.processSale (testRecord2);
    }
    
}
